package com.hotec.PROJECT_NAME.modules.sys.entity;

import com.hotec.PROJECT_NAME.component.basic.BaseEntity;
import lombok.Data;
import lombok.experimental.Accessors;

import javax.persistence.Column;
import javax.persistence.Table;
import javax.validation.constraints.Size;


/**
 *
 *消息表
 * @author llb
 */
@Data
@Table(name = "sys_message")
@Accessors(chain = true)
public class SysMessage extends BaseEntity {

    @Size(max=4000)
    @Column(name = "content")
    private String content;

    /**
     * 所属系统
     */
    @Column(name = "system_")
    private String system;

    /**
     * 商户id或者trust标识
     */
    @Column(name = "target_id")
    private String targetId;

    /**
     * 类型 站内信或者交易
     */
    @Column(name = "type_")
    private String type;

}
